package com.nexus.core.service.entity;

import lombok.Data;

/**
 * 树形结构实体基类
 *
 * @Date 2025/7/23 15:35
 * @Author luzhengning
 **/
@Data
public abstract class TreeEntity<T extends TreeEntity> extends BaseEntity {
    /**
     * 节点名称
     *
     * @Date 2025/7/23 15:47
     * @Author luzhengning
     **/
    private String name;
    /**
     * 父节点ID
     *
     * @Date 2025/7/23 15:38
     * @Author luzhengning
     **/
    private String parent;

    /**
     * 所有父级节点
     *
     * @Date 2025/7/29 11:07
     * @Author luzhengning
     **/
    protected String parentIds;

    /**
     * 排序字段
     *
     * @Date 2025/7/23 15:49
     * @Author luzhengning
     **/
    private Integer sort = 0;

    /**
     * 层级深度
     *
     * @Date 2025/7/23 15:50
     * @Author luzhengning
     **/
    private Integer level = 0;
}
